export default{
    //防抖
   debounce(fn) {
    let timer = null
    return(...args)=>{
      clearTimeout(timer)
      timer = setTimeout(() => {
        fn.apply(this, args)
      }, 500)
    }
  },
}